package com.wuyou.mid;

import java.util.*;
import java.util.stream.Collectors;

/**
 * 721. 账户合并
 *
 * @Date 2024/12/9 17:04
 * @Author 无忧
 */
public class AccountsMerge {

    public static void main(String[] args) {
//        AccountsMerge accountsMerge = new AccountsMerge();
//        String[][] accounts = {{"John", "johnsmith@mail.com", "john00@mail.com"}, {"John", "johnnybravo@mail.com"}, {"John", "johnsmith@mail.com", "john_newyork@mail.com"}, {"Mary", "mary@mail.com"}};
//        List<List<String>> a=new ArrayList<>();
//        for(String[] t : accounts){
//            a.add(Arrays.asList(t));
//        }
//        System.out.println(accountsMerge.accountsMerge(a));
        int x = 100;
        int y = Integer.MAX_VALUE;
        System.out.println(x % 1000000007);
        System.out.println(y % 1000000007);

    }


    public List<List<String>> accountsMerge(List<List<String>> accounts) {
        Set<String> collect = accounts.stream().map(e -> e.get(0)).collect(Collectors.toSet());
        List<List<String>> res = new ArrayList<>();

        return res;
    }
}
